package com.cj.cms.entity;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Table;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import com.cj.common.entity.IdEntity;

@Entity
@Table(name = "TEMPLATE")
@Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE,region="Template")
public class Template extends IdEntity{
	public final static String CONFIG_TEMPLATE_TYPE = "templateType";
	public final static String CHANNEL_TEMPLATE = "channel";
	public final static String ARTICLE_TEMPLATE = "article";
	public final static String PERTAIN_TEMPLATE = "pertain";
	public final static String OTHER_TEMPLATE = "other";
	
	public Template() {
	}
	public Template(Long id) {
		super.setId(id);
	}
	
	private String code;
	private String name;
	private String path;
	private String type;
	private Date createTime;
	private String description;
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getPath() {
		return path;
	}
	public void setPath(String path) {
		this.path = path;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	
}
